home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000069_news@newsmaster….columbia.edu _Thu Jan 8 12:28:14 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA16426
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 8 Jan 1998 12:28:14 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA19444
  7.     for kermit.misc@watsun; Thu, 8 Jan 1998 12:28:13 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Unix login
  12. Date: 8 Jan 1998 17:28:10 GMT
  13. Organization: Columbia University
  14. Lines: 35
  15. Message-ID: <6932ba$8ei$1@apakabar.cc.columbia.edu>
  16. References: <rkqykxamezqo.pminews@psr>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8239
  19.  
  20. In article <rkqykxamezqo.pminews@psr>,
  21. Richard Kimber <poa02@cc.keele.ac.uk> wrote:
  22. : I am experimenting with Kermit for OS/2 and am trying to set up an automated
  23. : login to a unix machine.  However, after accepting my password the machine
  24. : presents me with a crude menu, asking me to type 1, 2, or 3 , depending on
  25. : which machine I want.
  26. : I don't seem to have found the correct way of dealing with this.  The best I
  27. : can get is a hang of the Kermit session while being invited to input a
  28. : number.
  29. : I am able to connect OK by typing in my username, password, and menu choice
  30. : by hand. 
  31. : I should be grateful for some pointers.
  32. Did you read the manual chapters on script programming?  They contain 
  33. examples of how to do this.  Very briefly:
  34.  
  35.  1. Collect a session log so you can see the exact character stream.
  36.  
  37.  2. Identify the final character string that is sent in the act of
  38.     putting up the menu.
  39.  
  40.  3. Execute an INPUT command for that string, including any control
  41.     characters or escape sequences it might contain.
  42.  
  43.  4. After the INPUT command completes successfully (if it does), include
  44.     a PAUSE 1 command just for safety.
  45.  
  46.  5. Send your menu selection, e.g. "output 3\13".
  47.  
  48. Then add a command to do whatever you want to do next, e.g. "connect".
  49.  
  50. - Frank